import {
  Home,
  CarouselSetting,
  FriendshipLink,
  HomeModuleSetting,
  HomeSetting,
  MenuSetting,
  LogoTitle,
  ModuleManage,
  ModuleSetting,
  UserManage,
} from "@/pages";

const homeRoutes = {
  path: "/home",
  component: Home,
  backUrl: "/login",
  role: ["user", "superAdmin"],
  children: [
    {
      title: "模块设置",
      path: "/home/moduleSetting",
      component: ModuleSetting,
      backUrl: "/login",
      role: ["user", "superAdmin"],
    },
    {
      title: "模块管理",
      path: "/home/moduleManage",
      component: ModuleManage,
      backUrl: "/login",
      role: ["user", "superAdmin"],
    },
    {
      title: "首页设置",
      path: "/home/homeSetting",
      component: HomeSetting,
      backUrl: "/login",
      role: ["user", "superAdmin"],
    },
    {
      title: "菜单设置",
      path: "/home/menuSetting",
      component: MenuSetting,
      backUrl: "/login",
      role: ["user", "superAdmin"],
    },
    {
      title: "轮播图设置",
      path: "/home/carouselSetting",
      component: CarouselSetting,
      backUrl: "/login",
      role: ["user", "superAdmin"],
    },
    {
      title: "首页模块设置",
      path: "/home/homeModuleSetting",
      component: HomeModuleSetting,
      backUrl: "/login",
      role: ["user", "superAdmin"],
    },
    {
      title: "友情链接设置",
      path: "/home/friendshipLink",
      component: FriendshipLink,
      backUrl: "/login",
      role: ["user", "superAdmin"],
    },
    {
      title: "logo与标题",
      path: "/home/logoTitle",
      component: LogoTitle,
      backUrl: "/login",
      role: ["user", "superAdmin"],
    },
    {
      title: "用户管理",
      path: "/home/userManage",
      component: UserManage,
      backUrl: "/login",
      role: ["user", "superAdmin"],
    },
  ],
};

export default homeRoutes;
